<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="de" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Campus3D</title>
<link rel="stylesheet" type="text/css"
              href="http://www.x3dom.org/download/x3dom.css" />
        <script type="text/javascript"
                src="http://www.x3dom.org/download/x3dom.js">
        </script>
<script src="http://code.google.com/apis/gears/gears_init.js" type="text/javascript" charset="utf-8"></script>
	<script src="geo.js?id=1" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
//    var x = 0;
//    var z = 0;
//    function gps() {
//        if(geo_position_js.init()){
//			geo_position_js.getCurrentPosition(success_callback,error_callback,{enableHighAccuracy:true});
//		}
//	else{
//			alert("Functionality not available");
//		}
//        
//        
//    }
//    
//    function success_callback(p)
//    {
//         var i = 0;
//         
//         while (i !== 10) {
//                        
//              x = x + p.coords.latitude.toFixed();
//              z = z + p.coords.longitude.toFixed();
//              i = i + 1;
//                        
//                        
//         }
//                   
//         x = x/i;
//         z = z/i;
//         position();
//                   
//                   
//                   
//	}
//                
//	function error_callback(p)
//	{
//                    
//	       alert('error='+p.code);
//	}
//    function position() {
//        
//       //document.getElementById("wuerfel").getAttribute('translation');
//        //alert(y);
//        
//        zahlx = x;
//        zahlz = z;
//        xx = zahlx + ' ';
//        yy = 2 + ' ';
//        zz = 0 + '';
//        a = xx + yy + zz;
//        //alert (a);
//        document.getElementById("standort").setAttribute('position', a);
//    }
</script>
<style>
.signatur{color:blue}
h1 {color:green}
</style>

</head>

<div align="center">

<p>
<h1>Campus3D</h1><br>
<input type="submit" value=" neuer Standort " onclick="gps()"></input>
</p>


<body>
<x3d width="1200px" height="800px">
        <scene>
            <viewpoint id="standort" position="0 2 0"></viewpoint>




            <transform id="campus">

                <transform>
                    <transform scale="10 0.5 10">
                        <shape>
                            <appearance>
                                <ImageTexture  url="textur.jpg"></ImageTexture>
                            </appearance>
                            <box></box>
                        </shape>
                    </transform>
                </transform>



               <!--Mensa -->
                <transform translation="3 1 -3">
                    <transform rotation="0 10 0 -139.80">
                    	<transform scale="4.2 0.5 1.2">

                        	<shape>
                            	<appearance>
                              	  <material></material>
                          	  </appearance>
                          	  <box></box>
                        	</shape>

                   		 </transform>
                    </transform>
                </transform>


                <transform>

                    <!--Bibliothek-->
                    <transform translation="0 1 5">

                        <transform scale="4 0.5 2.5">

                                    <shape>
                                        <appearance>
                                            <material></material>
                                        </appearance>
                                        <box></box>
                                    </shape>

                        </transform>
                            </transform>
                     </transform>



                <transform>

                    <!--SSC
                    -->
                    <transform translation="-2 1 -8">
						 <transform rotation=" 0 0 -270">
                       		 <transform scale="3 0.5 0.5">

                                    <shape>
                                        <appearance>
                                            <material></material>
                                        </appearance>
                                        <box></box>
                                    </shape>

                        </transform>
                            </transform>
                        </transform>

<!--            <transform translation="4 -0.8 0">

                    <transform scale="0.2 0.2 0.2">

                        <shape onclick="changeColor()">
                            <appearance>
                                <material id="color" diffuseColor='1 0 0'></material>
                            </appearance>
                            <box></box>
                        </shape>

                    </transform>
                </transform>
            <timeSensor id='drehen' DEF='clock' cycleInterval='8' loop='true'></timeSensor>
                    <orientationInterpolator DEF='spinThings' key='0 0.25 0.5 0.75 1' keyValue='0 1 0 0  0 1 0 1.57079  0 1 0 3.14159  0 1 0 4.71239  0 1 0 6.28317'></orientationInterpolator>

                    <ROUTE fromNode='clock' fromField='fraction_changed' toNode='spinThings' toField='set_fraction'></ROUTE>
                    <ROUTE fromNode='spinThings' fromField='value_changed' toNode='baum' toField='set_rotation'></ROUTE>-->
        </scene>
    </x3d>



<p class="signatur">
Kuchenkäse

</p>

</div>

</body>
</html>